import requset from "@/utils/http";


export const getDetail = (id) => {
    return requset({
        url:'/goods',
        params:{
            id
        }
    })
}
export const getHotGoodsAPI = ({ id, type, limit = 3 }) => {
    return requset({
        url:'/goods/hot',
        params:{
            id,
            type,
            limit
        }
    })
}